<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});


// 注册
Route::post('/register', 'Auth\XdRegisterController@register');
// 登录
Route::post('/login', 'Auth\XdLoginController@login');
// 登出
Route::post('/logout', 'Auth\XdLoginController@logout');
// 忘记密码
Route::post('/forgetpassword', 'Auth\ForgotPasswordController@forget');
// 发送验证码
Route::post('/sendCode', 'Auth\SendCodeController@sendPhone');
// 个人信息
Route::get('/personal', 'Auth\PersonalController@index');
// 个人信息
Route::post('/personal', 'Auth\PersonalController@change');

